﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace HerbertDotNet.Visualizer
{
    static class Extensions
    {
        public static SizeF InvertXY(this SizeF point)
        {
            return new SizeF(-point.Width, -point.Height);
        }

        public static PointF InvertXY(this PointF point)
        {
            return new PointF(-point.X, -point.Y);
        }

        public static SizeF SwapXY(this SizeF point)
        {
            return new SizeF(point.Height, point.Width);
        }

        public static PointF SwapXY(this PointF point)
        {
            return new PointF(point.Y, point.X);
        }
    }
}
